package com.wholesale.beans;

import java.util.List;

import org.json.JSONException;
import org.json.JSONObject;

public class GoodsDescribe {
	private String describe ;
	private List<String> images ;
	private String table ;
	private JSONObject jsonObject;
	public String getDescribe() {
		
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public List<String> getImages() {
		
		return images;
	}
	public void setImages(List<String> images) {
		this.images = images;
	}
	public String getTable() {
		
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	public void jsonAnalytic(String jsonString){
		
		try {
			jsonObject = new JSONObject(jsonString);
			jsonAnalytic(jsonObject);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public void jsonAnalytic(JSONObject jsonObject){
		this.jsonObject = jsonObject;
		
			try {
				describe = jsonObject.getString("describe");
			} catch (JSONException e) {
				
				e.printStackTrace();
			}
			try {
				table = jsonObject.getString("table");
			} catch (JSONException e) {
			
				e.printStackTrace();
			}
		
	}
}
